<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>China Fullfill</title>
<script type="text/javascript" src="/js/jquery.min.js"></script>

<script type="text/javascript" src="/js/jquery.fancybox.js"></script>
<link rel="stylesheet" type="text/css" href="/css/jquery.fancybox.css" media="screen" />
<link rel="stylesheet" type="text/css" href="/css/jquery.fancybox-thumbs.css" />
<script type="text/javascript" src="/js/jquery.fancybox-thumbs.js"></script>  
<script type="text/javascript">
	
	$(function(){
		$('.fancybox-thumbs').fancybox({
			prevEffect	: 'none',
			nextEffect	: 'none',
			helpers	: {
				title	: {
					type: 'outside'
				},
				overlay	: {
					opacity : 0.8,
					css : {
						'background-color' : '#000'
					}
				},
				thumbs	: {
					width	: 50,
					height	: 50
				}
			}
		});	
	})
</script>
<style>
body{
	 font: 12px/150% Arial,Helvetica,sans-serif,'宋体';
}
#content{
	background: none repeat scroll 0 0 white;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    text-align: center;
    width: 19cm;
	padding:0 px;
	font-size:13px;
}
table { 
	border-collapse: collapse; 
	border: none; 
	width: 100%; 
} 
td { 
	border: solid #000000 1px; 
	height:27px;
} 
.button{
	border: 1px solid #318DAC;
    border-radius: 3px 3px 3px 3px;
    color: #318DAC;
    font-weight: lighter;
    margin: auto 5px;
    padding: 2px 5px;
    vertical-align: middle;
	background:#F1F6F9;
}
.barcode{
	display:inline-block;
}
.printTitle{
	display:inline-block;
	font-size:24px;
	float:right;
	margin-top:20px;
}
.fontBold{
	font-weight:bold;
}
</style>
</head>
<body>
<div id='content'>
	<{foreach from=$results item=res key=rk}>
	<div class="qcSheet<{$rk}>" style="<{if !$smarty.foreach.results.last}>page-break-after:always<{/if}>">
    <div style="text-align:left; margin:20px 0 10px 0;">
        <div class='barcode'><img src="/product/qc/barcode/code/<{$res.qco_code}>"/></div>
        <div class='printTitle'><{if $res.order_type==4}>特采单<{else}>免检单<{/if}><span style="padding-left:280px;"><{$res.ri_sort}></span></div>
        
    </div>
    <div class='qccontent' style="clear:both;">
        <table>
            <tr class="fontBold"><td><{$lang.quanlity_code}></td><td><{$lang.quanlity}>员</td><td>ASN NO.</td><td><{$lang.receive}>员</td><td><{$lang.receive}><{$lang.date}></td><td colspan="2"><{$lang.quanlity}><{$lang.date}></td></tr>
            <tr><td><{$res.qco_code}></td>
                <td><{$res.qc_uname}></td>
                <td><{$res.qco_ref_code}></td>
                <td><{$res.reccvice_uname}></td>
                <td><{$res.recevice_date}></td>
                <td colspan="2"><{$res.qco_last_update}></td></tr>
                
            <tr class="fontBold">
            <td><{$lang.product}><{$lang.picture}></td>
			<td><span style="color:#666; text-decoration:underline;"><{$lang.customer_code}></span></td>
			<td><{$lang.product}><{$lang.sku}></td>
			<td><{$lang.product}><{$lang.weight}></td>
			<td>送检<{$lang.quantity}></td>
			<td>实收总<{$lang.quantity}></td>
			<td><{$lang.recommend}><{$lang.ws_code}></td>
			</tr>
          <!-- 循环<{$lang.sku}>  循环<{$lang.sku}>中QC项view-picture/get-view-pictures-for-qc目-->
            <{foreach from=$res.product_info item=items key=key}>
                <{foreach from=$items item=it key=k}>
                    
					
					<{if $k eq '0'}>
					<tr>
					    <td rowspan=3>
						<{if $it.proAttId|@count neq 0}>
							 <{foreach from=$it.proAttId item=id key=kid}>
								<div class="product-img-view" style="<{if $kid neq '0'}>display:none;<{/if}>">
								<a class="fancybox-thumbs" data-fancybox-group="thumb" href="/product/product/view-qc-picture/paid/<{$id}>"><img style="width:75px;height:75px;" src="/product/product/view-qc-picture/paid/<{$id}>"></a></div>
							 <{/foreach}>
						<{else}>
						<img style="width:75px;height:75px;" src="/product/product/view-qc-picture/paid/0">
						<{/if}>
						
						</td>
						<td><span style="color:#666; text-decoration:underline;"><{$it.customer_id}></span></td>
						<td><{$it.product_sku}></td>
						<td><{$it.product_weight}></td>
						<td><{$it.qci_quantity}></td>
						<td><{$it.qco_real_quantity}></td>
						<td><{$it.default_ws_code}></td>
					</tr>
					<{/if}>
         
					
                <{/foreach}>
				 <tr>
					<td class="fontBold">联系人</td>
					<td><{$res.receiving.contact}></td>
					<td class="fontBold">联系<{$lang.telphone}></td>
					<td><{$res.receiving.contact_mobile}></td>
					<td class="fontBold">ASN<{$lang.referNo}></td>
					<td><{$res.receiving.ref_id}></td>
				
				</tr>
                             
                <tr>
				<td class="fontBold"><{$lang.remark}></td><td colspan=5><{$it.qco_note}></td>
				
				</tr>
            <{/foreach}>
           
         
         </table>
    </div>
    </div>
    <{/foreach}>
</div>
</body>
</html>